home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: Alpha / Whiteline Alpha.iso / progtool / c / gcc / gemlib30.zoo / test / doodle / portab.h.Z / portab.h
Encoding:
C/C++ Source or Header  |  1989-11-13  |  1.8 KB  |  49 lines

  1. /************************************************************************/
  2. /*    PORTAB.H    Pointless redefinitions of C syntax.        */
  3. /*        Copyright 1985 Atari Corp.                */
  4. /*                                    */
  5. /*    WARNING: Use of this file may make your code incompatible with    */
  6. /*         C compilers throughout the civilized world.        */
  7. /************************************************************************/
  8.  
  9. #define mc68k 1
  10.  
  11. /*
  12.  *    Standard type definitions
  13.  */
  14. #define    BYTE    char                /* Signed byte           */
  15. #define BOOLEAN    int                /* 2 valued (true/false)   */
  16. #define    WORD    int                  /* Signed word (16 bits)   */
  17. #define    UWORD    unsigned int            /* unsigned word       */
  18.  
  19. #define    LONG    long                /* signed long (32 bits)   */
  20. #define    ULONG    long                /* Unsigned long       */
  21.  
  22. #define    REG    register            /* register variable       */
  23. #define    LOCAL    auto                /* Local var on 68000       */
  24. #define    EXTERN    extern                /* External variable       */
  25. #define    MLOCAL    static                /* Local to module       */
  26. #define    GLOBAL    /**/                /* Global variable       */
  27. #define    VOID    void                /* Void function return       */
  28.  
  29. #ifdef UCHARA
  30. #define UBYTE    char                /* Unsigned byte        */
  31. #else
  32. #define    UBYTE    unsigned char            /* Unsigned byte       */
  33. #endif
  34.  
  35. /****************************************************************************/
  36. /*    Miscellaneous Definitions:                        */
  37. /****************************************************************************/
  38. #define    FAILURE    (-1)            /*    Function failure return val */
  39. #define SUCCESS    (0)            /*    Function success return val */
  40. #define    YES    1            /*    "TRUE"                */
  41. #define    NO    0            /*    "FALSE"                */
  42. #define    FOREVER    for(;;)            /*    Infinite loop declaration   */
  43. #define    NULL    0            /*    Null pointer value        */
  44. #define NULLPTR (char *) 0        /*                    */
  45. #define    EOF    (-1)            /*    EOF Value            */
  46. #define    TRUE    (1)            /*    Function TRUE  value        */
  47. #define    FALSE    (0)            /*    Function FALSE value        */
  48.  
  49.